const { app, BrowserWindow , ipcMain} = require('electron/main')
const createWelcomeWindow = require('./Windows/WelcomeWindow')
const createMainWindow = require('./Windows/MainWindow')
const UserData = require('./global/globalUserData')

app.whenReady().then(() => {
    createWelcomeWindow();
    //createMainWindow();

    app.on('activate', () => {
        if (BrowserWindow.getAllWindows().length === 0) {
            createWelcomeWindow();
        }
    })
})

app.on('window-all-closed', () => {
    if (process.platform !== 'darwin') {
        app.quit()
    }
})
